package com.csaba.connector.bha;

import com.csaba.connector.BankService;
import com.csaba.connector.I18NServiceException;
import com.csaba.connector.ServiceException;
import com.csaba.connector.ServicePluginConfiguration;
import com.csaba.connector.bha.model.BHABank;
import com.csaba.connector.model.Bank;

public class BHAPluginConfiguration implements ServicePluginConfiguration
{

	@Override
	public Bank getBank()
	{
		return BHABank.getInstance();
	}

	@Override
	public BankService getBankService( final Class<?> serviceClass ) throws ServiceException
	{
		throw new I18NServiceException(BHABank.getInstance(), "msg.unsupportedService", "", serviceClass.getName(),
				getBank().getName());
	}

	@Override
	public String getServicePackage()
	{
		return getClass().getPackage().getName();
	}

	@Override
	public String getServicePrefix()
	{
		return "BHA";
	}

}
